package com.bys.admin.system.entity;

import com.baomidou.mybatisplus.annotation.*;

import com.bys.config.BaseEntity;
import com.bys.handler.MetaTypeHandler;
import com.bys.admin.system.vo.Meta;


import lombok.Data;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author bys
 * @since 2023-06-26
 */
@Data
@TableName(value = "sys_menu",autoResultMap = true)
@Schema(name = "SysMenu对象", description = "菜单表")
public class SysMenu  extends BaseEntity {

    @Schema(description = "菜单名字")
    private String name;

    @Schema(description = "菜单父级id")
    private Long parentId;

    @Schema(description = "路径")
    private String path;

    @Schema(description = "组件")
    private String component;

    @Schema(description = "菜单图标")
    private String icon;

    @Schema(description = "菜单类型")
    private String menuType;

    @Schema(description = "权限字符")
    private String permission;
    @Schema(description = "重定向")
    @TableField(value = "redirect")
    private String redirect;

    @Schema(description = "菜单元素信息")
    @TableField(typeHandler = MetaTypeHandler.class)
    private Meta meta;

    @Schema(description = "排序")
    private Integer sort;



}
